package com.sh.caryr.erp.entity.basis;

import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.sh.caryr.erp.util.DateUtils;
import com.sh.caryr.erp.util.ERPConstants;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@TableName("erp_shop")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Shop implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 店铺ID
     */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;
	/**
	 * 公司代码
	 */
	private String coco;
    /**
     * 店铺名称
     */
	private String shopName;
	/**
	 * 描述
	 */
	private String description;
    /**
     * 店铺所在平台，淘宝：001，京东：002
     */
	private Integer platform;

	/**
	 * 数据是否可用
	 */
	private int isActive = ERPConstants.ENITYT_ACTIVE;
	/**
	 * 更新日期
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtils.DATE_FORMAT_FULL)
	private Date updateAt;
	/**
	 * 更新用户
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long updateBy;
	/**
	 * 创建日期
	 */
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateUtils.DATE_FORMAT_FULL)
	private Date createAt;
	/**
	 * 创建人
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long createBy;
}
